<?php

namespace Zch\LishangLaravelShop\Wap\Member\Console\Commands;

use Illuminate\Console\Command;

class wapMemberInstall extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'wap-member:install';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'wap member install';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        //echo 'wap member install==='.$this->argument('user');

        //在此处再次执行命令

        $this->call('migrate');//数据库迁移
        
        //配置文件发布
        $this->call('vendor:publish', ["--provider"=>"Zch\LishangLaravelShop\Wap\Member\Provides\MemberServiceProvider"]);
    }
}
